<template>
    <div class="list">
      <div   v-for="(item,index) of List" :key="index">
        <div class="list-item border-bottom">
          <span>{{ item.title }}</span>
        </div>
        <div class="children" v-if="item.children">
          <detail-list :List="item.children"></detail-list>
        </div>
      </div>

    </div>
</template>

<script>
    export default {
        name: "DetailList",
      props:{
        List:{
          type:Array
        }
      },
      data() {
          return {

          }
      }
    }
</script>

<style lang="stylus" scoped>
  .list-item
    height:.64rem
    line-height:.64rem
    padding:0 .2rem
    font-size:.24rem
  .children  {
    padding:0 .2rem
  }


</style>
